package com.jhj.service.bm;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.jhj.po.bm.model.BmOrder;
import com.jhj.po.bm.model.OrderContract;
import com.jhj.service.BaseService;
import com.jhj.vo.bm.ChartSearchVo;
import com.jhj.vo.bm.OrderContractSearchVo;
import com.jhj.vo.bm.OrderContractVo;
import com.jhj.vo.bm.SaleRankVo;

public interface OrderContractService extends BaseService<OrderContract>{
	
	OrderContractVo getVo(OrderContract item, BmOrder order);
	
	/**
	 * 统计销售老师订单金额
	 * 
	 * */
	List<Map<String,String>> countSaleOrderMoney(ChartSearchVo vo);
	
	/**
	 * 统计销售老师订单数量
	 * 
	 * */
	List<Map<String,String>> countSaleOrderNum(ChartSearchVo vo);

	List<Map<Integer, BigDecimal>> sumSaleOrderPay(ChartSearchVo searchVo);

	String getContractEnd(OrderContract item);

	List<String> getContractDates(OrderContract item);
	/**
	 * 自动生成合同的编号
	 * @return
	 */
	String  getContractNo();

	String getContractStartDate(OrderContract item);

	List<SaleRankVo> saleRankStat(ChartSearchVo searchVo);

	Integer statNumBySearchVo(ChartSearchVo searchVo);

	PageInfo selectByListPage(OrderContractSearchVo searchVo, int pageNo, int pageSize, String orderBy);  
}
